package cn.richard.base.util

import cn.richard.base.constant.EXTRA
import cn.richard.base.constant.RouterPath
import com.alibaba.android.arouter.launcher.ARouter


/**
 *
 * @ProjectName: PicApp
 * @Author: wuzhiguo@aiforward.com
 * @CreateDate: 2021/9/3 4:33 下午
 * @Description:
 */
object RouterHelper {

    fun startPicCategory() {
        ARouter.getInstance()
            .build(RouterPath.Home.PicCategory)
            .navigation()
    }

    fun startPicList(categoryId: String) {
        ARouter.getInstance()
            .build(RouterPath.Home.PicList)
            .withString(EXTRA.ID, categoryId)
            .navigation()
    }

    fun homeProvider():Any? {
        return ARouter.getInstance()
            .build(RouterPath.Starter.HOME_PROVIDER)
            .navigation()
    }

}